Reverse EMA “The Reverse EMA Indicator” , author John Ehlers presents very interesting filtering technique based on a Z-transform of the exponential moving average.
"Reverse EMA"に関するスクリプトを検索
[blackcat] L2 Ehlers Reverse EMALevel: 2
Background
John F. Ehlers introuced Reverse EMA in Sep, 2017.
Function
In “The Reverse EMA Indicator” in Sep, 2017, John Ehlers presented very interesting filtering technique based on a Z-transform of the exponential moving average. It is a causal forward and backward EMA indicator that could be used in real trading. It has double smoothing at the high end of the spectrum to reduce aliased components and is able to mitigate the impact of spectral dilation at the low end. The author described the indicator as having unique flexibility in that it could display trend or cycle information by varying the alpha parameter and do this with very low lag.
Key Signal
TrendRevEMA --> Ehlers Reverse EMA slow line
CycleRevEMA --> Ehlers Reverse EMA fast line
Pros and Cons
100% John F. Ehlers definition translation, even variable names are the same. This help readers who would like to use pine to read his book.
Remarks
The 88th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Ehlers Forward Reverse EMAThis is Ehlers most recent indicator, today is 6/17/18 "Forward and Reverse EMA". I have done my best to translate the code form trade stations easy language.
If anyone knows easy language could they check my translation against the easy language code below.
{
Forward / Reverse EMA
(c) 2017 John F. Ehlers
}
Inputs:
AA(.1);
Vars:
CC(.9),
RE1(0),
RE2(0),
RE3(0),
RE4(0),
RE5(0),
RE6(0),
RE7(0),
RE8(0),
EMA(0),
Signal(0);
CC = 1 - AA;
EMA = AA*Close + CC*EMA ;
RE1 = CC*EMA + EMA ;
RE2 = Power(CC, 2)*RE1 + RE1 ;
RE3 = Power(CC, 4)*RE2 + RE2 ;
RE4 = Power(CC, 8)*RE3 + RE3 ;
RE5 = Power(CC, 16)*RE4 + RE4 ;
RE6 = Power(CC, 32)*RE5 + RE5 ;
RE7 = Power(CC, 64)*RE6 + RE6 ;
RE8 = Power(CC, 128)*RE7 + RE7 ;
Signal = EMA - AA*RE8;
Plot1(Signal);
Plot2(0);
reverse EMA Osc - John EhlersThis an universal oscillator with features such as minimum lag and a single-input parameter that lets it highlight cycle, momentum, and trend components.
It is based on reverse impulse response filter technique applied to EMA.
Color style borrowed from Awesome Oscillator, between one can notice a better lag response with this indicator.
reverse EMA Osc - John EhlersThis an universal oscillator with features such as minimum lag and a single-input parameter that lets it highlight cycle, momentum, and trend components.
based on reverse impulse response filter design applied to EMA.
colorstyle for histogram style borrowed from Awesome Oscilator, but one will notice the superior lag response.
TASC 2021.11 MADH Moving Average Difference, Hann█ OVERVIEW
Presented here is code for the "Moving Average Difference, Hann" indicator originally conceived by John Ehlers. The code is also published in the November 2021 issue of Trader's Tips by Technical Analysis of Stocks & Commodities (TASC) magazine.
█ CONCEPTS
By employing a Hann windowed finite impulse response filter (FIR), John Ehlers has enhanced the Moving Average Difference (MAD) to provide an oscillator with exceptional smoothness.
Of notable mention, the wave form of MADH resembles Ehlers' "Reverse EMA" Indicator, formerly revealed in the September 2017 issue of TASC. Many variations of the "Reverse EMA" were published in TradingView's Public Library.
█ FEATURES
Three values in the script's "Settings/Inputs" provide control over the oscillators behavior:
• The price source
• A "Short Length" with a default of 8, to manage the lower band edge of the oscillator
• The "Dominant Cycle", originally set at 27, which appears to be a placeholder for an adaptive control mechanism
Two coloring options are provided for the line's fill:
• "ZeroCross", the default, uses the line's position above/below the zero level. This is the mode used in the top version of MADH on this chart.
• "Momentum" uses the line's up/down state, as shown in the bottom version of the indicator on the chart.
█ NOTES
Calculations
The source price is used in two independent Hann windowed FIR filters having two different periods (lengths) of historical observation for calculation, one being a "Short Length" and the other termed "Dominant Cycle". These are then passed to a "rate of change" calculation and then returned by the reusable function. The secret sauce is that a "windowed Hann FIR filter" is superior tp a generic SMA filter, and that ultimately reveals Ehlers' clever enhancement. We'll have to wait and see what ingenuities Ehlers has next to unleash. Stay tuned...
The `madh()` function code was optimized for computational efficiency in Pine, differing visibly from Ehlers' original formula, but yielding the same results as Ehlers' version.
Background
This indicator has a sibling indicator discussed in the "The MAD Indicator, Enhanced" article by Ehlers. MADH is an evolutionary update from the prior MAD indicator code published in the October 2021 issue of TASC.
Sibling Indicators
• Moving Average Difference (MAD)
• Cycle/Trend Analytics
Related Information
• Cycle/Trend Analytics And The MAD Indicator
• The Reverse EMA Indicator
• Hann Window
• ROC
Join TradingView!
Ehlers Reverse Exponential Moving AverageEhlers Reverse Exponential Moving Average script.
This indicator was originally developed by John F. Ehlers (Stocks & Commodities V. 35:10: The Reverse EMA Indicator).
TrapLightTrap Light is built off the stochastic RSI to provide convenience and make your entries while scalping either long/short more straightforward.
Notes/Disclaimer:
This indicator is not guaranteed to work every time. Use it at your own discretion and perform your own due diligence. None of this is financial advice.
The main idea behind this is that when the stochastic RSI reaches such extremes that it often moves in a favorable direction.
K = momentum or the blue line of the stochastic RSI indicator.
Perks:
Don't have to look away from candlesticks and measure stochastic RSI's K level.
Simple visual indication of what to do.
Don't have to stare at your chart all day waiting for things to get exciting.
How to Use:
(Above the current candlestick on any timeframe)
1. When K is greater than or equal to 99.5, it shows a sell signal. This is to indicate a short entry.
2. When K is less than or equal to 0.5, it shows a buy signal. This is to indicate a long entry.
3. If neither the conditions for a short/long entry are present, it shows a circle that is like a traffic light.
Red Light: When K is between 99.5 and 95, a red circle is shown to indicate that a short entry may be available soon.
Yellow Light: When K is between 95 and 5, a yellow circle is shown to indicate that neither a long nor short entry may be available soon.
Green Light: When K is between 5 and 0.5, a green circle is shown to indicate that a long entry may be available soon.
Alerts:
Set an alert on the ticker you trade to notify you when either the green or red light is present so that you have time to prepare to make an entry either long/short.
The Code:
The PineScript is open-source and annotated to explain different parts of the script for ease of understanding.
@Credit to Kingson1 for this strategy and his feedback on its creation/implementation.